module.exports = function socketclient() { // 用于UDP连接
    const dgram = require('dgram');
    const message = Buffer.from('一些字节');
    const client = dgram.createSocket('udp4');
    client.send(message, 1234, 'localhost', (err,bytes) => {
        client.close();
    });
    const client1 = dgram.createSocket('udp4');
    client1.send(message, 4321, 'localhost', (err,bytes) => {
        client1.send(message, 4321, 'localhost', (err,bytes) => {
            client1.close();
        })
    });

}